package com.suyang.syt.model.dto;

import java.util.ArrayList;
import java.util.List;

import com.suyang.syt.model.Banner;
import com.suyang.syt.model.Pic;

@SuppressWarnings("serial")
public class BannerDTO extends Banner {
	/** 广告栏图片集合 */
	private List<Pic> pics = new ArrayList<Pic>();

	public BannerDTO() {

	}

	public BannerDTO(Banner banner) {
		this.setCreateName(banner.getCreateName());
		this.setCreateTime(banner.getCreateTime());
		this.setId(banner.getId());
		this.setJianpin(banner.getJianpin());
		this.setQuanpin(banner.getQuanpin());
		this.setModifyName(banner.getModifyName());
		this.setModifyTime(banner.getModifyTime());
		this.setName(banner.getName());
		this.setOrderIndex(banner.getOrderIndex());
		this.setOpterType(banner.getOpterType());
		this.setStatus(banner.getStatus());
		this.setObjId(banner.getObjId());
		this.setObjName(banner.getObjName());
		this.setFlag(banner.getFlag());
	}

	public List<Pic> getPics() {
		return pics;
	}

	public void setPics(List<Pic> pics) {
		this.pics = pics;
	}

}
